package com.hyl.ssm.entity;

import lombok.Data;
import org.springframework.stereotype.Component;

import java.io.Serializable;
import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * Oet
 *
 * @author hyl
 * @date 2024-12-12
 */
@Data  //封装=》get/set
@Component("pet111")
public class Pet implements Serializable {
    private String name;
    private int age;
    private String[] hobby;
    private List list;
    private Set set;
    private Map map;


    public String toString(){
        return "Pet [name=" + name + ", age=" + age + "]";
    }
}
